package com.CST.mapper.cst.cb;

import com.CST.dto.cb.DateDTO;
import com.CST.entity.cb.RuleCompelamortization;
import com.CST.entity.cb.selectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-10-27
 */
@Repository
public interface RuleCompelamortizationMapper extends BaseMapper<RuleCompelamortization> {

    List<RuleCompelamortization> getRuleCompelAmortization(RuleCompelamortization entity);

    RuleCompelamortization getRuleCompelAmortizationById(RuleCompelamortization entity);

    List<selectInfo> getYearMonth();

    void addRuleCompelAmortization(RuleCompelamortization entity);

    void insertBatchRuleCompelAmortization(List<RuleCompelamortization> list);

    void modifyRuleCompelAmortization(RuleCompelamortization entity);

    void batchDeleteRuleCompelAmortization(List<Integer> ids);

    void deleteByYearMonth(int year,int month);

    List<RuleCompelamortization> getDirectToCompelRule(DateDTO DateDTO);

    List<RuleCompelamortization> towiceCheck(DateDTO DateDTO);


    List<RuleCompelamortization> getXZRule(DateDTO dateDTO);

    List<RuleCompelamortization> getYFRule(DateDTO DateDTO);

    List<RuleCompelamortization> getYJRule(DateDTO DateDTO);
                //获取强制分摊对照
    List<RuleCompelamortization> getCompelRule(Integer year,Integer month);
}
